﻿using System;
using System.Collections.Generic;

namespace JYYQ.BMS
{
    public enum BatteryType { 铅酸蓄电池, 锂电池, 镍镉蓄电池, 镍氢蓄电池 }

    public class Battery
    {
        public double BCapcity { set; get; }
        public IList<ChargeData> BData { set; get; }

        public int BLevel { get; set; }

        public double BStandVolage { get; set; }

        public DateTime BTime { get; set; }

        public BatteryType BType { get; set; }

        public string Description
        {
            get
            {
                return string.Format("电池类型：{0}           标称电压：{1}伏特           标称容量：{2}安时           电池级别：{3}           测试时间：{4}", this.BType, this.BStandVolage, this.BCapcity, this.BLevel, this.BTime.ToString());
            }
        }

        public bool IsDeleted { get; set; }
    }
}